package com.jing.product.service.impl;

import com.jing.common.core.domain.R;
import com.jing.product.domain.PmsBrand;
import com.jing.product.mapper.ProductBrandMapper;
import com.jing.product.service.BrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BrandServiceImpl implements BrandService {
    @Autowired
    private ProductBrandMapper productBrandMapper;

    @Override
    public R findBrand(PmsBrand pmsBrand) {
        List<PmsBrand> list = productBrandMapper.findBrand(pmsBrand);
        return R.ok(list);
    }

    @Override
    public R BrandAdd(PmsBrand pmsBrand) {
        Integer integer = productBrandMapper.BrandAdd(pmsBrand);
        return null;
    }

    @Override
    public void BrandDelect(String id) {

    }
}
